import request from '@/utils/request'
import { helper } from 'echarts'
import { Header } from 'element-ui'
import dart from 'highlight.js/lib/languages/dart'

// 查询灭火救援岗位技能科目训练登记列表
export function listFirefighterFireTable(query) {
  return request({
    url: '/system/FirefighterFireTable/list',
    method: 'get',
    params: query
  })
}

// 查询灭火救援岗位技能科目训练登记详细
export function getFirefighterFireTable(id) {
  return request({
    url: '/system/FirefighterFireTable/' + id,
    method: 'get'
  })
}

// 新增灭火救援岗位技能科目训练登记
export function addFirefighterFireTable(data) {
  return request({
    url: '/system/FirefighterFireTable',
    method: 'post',
    data: data
  })
}

// 修改灭火救援岗位技能科目训练登记
export function updateFirefighterFireTable(data) {
  return request({
    url: '/system/FirefighterFireTable',
    method: 'put',
    data: data
  })
}

// 删除灭火救援岗位技能科目训练登记
export function delFirefighterFireTable(id) {
  return request({
    url: '/system/FirefighterFireTable/' + id,
    method: 'delete'
  })
}

export function dynamicInput(idCardNumber) {
  return request({
    url: '/ifmPost/ifmPost/dynamicInput',
    method: 'post',
    data:{
      idCardNumber: idCardNumber
    },
    // header:{
    //   'Content-Type': 'application/json'
    // }
  })
}

// 输入账号，获取人名
export function getFirefighterIdCard(idCardNumber) {
  return request({
    url: '/add/add/firefighterIdCard',
    method: 'post',
    data: {
      idCardNumber: idCardNumber
    }
  })
}

